package models

import "time"

type RoleResourceRel struct {
	Base
	RoleId     int64     `gorm:"column:role_id" json:"roleId"`         // 角色ID
	ResourceId int64     `gorm:"column:resource_id" json:"resourceId"` // 资源ID
	CreateTime time.Time `gorm:"column:create_time;type:datetime" json:"createTime"`
	Creator    int64     `gorm:"column:creator" json:"creator,string"`
}

//TableName 表名
func (c *RoleResourceRel) TableName() string {
	return "rms_role_resource_rel"
}
